<template>
  <div class="TabBar">
    <van-tabbar v-model="active" route fixed :placeholder="placeholder">
      <van-tabbar-item icon="home-o" replace to="/index" name="index">首页</van-tabbar-item>
      <van-tabbar-item icon="video-o" replace to="/video" name="video">视频</van-tabbar-item>
      <van-tabbar-item icon="search" replace to="/book" name="book">图书</van-tabbar-item>
      <van-tabbar-item icon="friends-o" replace to="/home" name="home"> 我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'TabBar',
  data() {
    return {
      active: 'index',
      placeholder: true
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
